import toolRegex from "./tool-regex";

const fileUrl = 'http://115.29.192.252:39000/app-bucket/';

const toolImg = {
	img(key) {
		if (toolRegex.isHttp(key) || !toolRegex.isImg(key)) {
			return key;
		}
	    return fileUrl + key;
	}
}

export default toolImg;